import Vue from 'vue'
import Vuex from 'vuex'
import app from './modules/app'
import user from './modules/user'
import systemUser from './modules/system/user'
import tagsView from './modules/tagsView'
import getters from './getters'
import orginfo from './modules/system/orginfo'
import positioninfo from './modules/system/positioninfo'
import userinfo from './modules/system/userinfo'
import appsystem from './modules/system/appsystem'
import modelBasic from './modules/subsys/model/modelBasic'
import modelPermission from './modules/subsys/model/modelPermission'
import userPermission from './modules/subsys/userPermission'
import userPermissionAdmin from './modules/subsys/userPermissionAdmin'
import userRoleAdmin from './modules/subsys/userRoleAdmin'
import userLog from './modules/subsys/userLog'
import adminLog from './modules/subsys/adminLog'
import orgTree from './modules/orgTree'
import modelTree from './modules/modelTree'
// import select from './modules/system/select'

Vue.use(Vuex)

const store = new Vuex.Store({
  modules: {
    app,
    tagsView,
    user,
    systemUser,
    orginfo,
    positioninfo,
    userinfo,
    appsystem,
    modelBasic,
    modelPermission,
    userPermission,
    userPermissionAdmin,
    userRoleAdmin,
    userLog,
    adminLog,
    orgTree,
    modelTree
  },
  getters
})

export default store
